package com.tuanzi.loan.web.lazy.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.statistics.ActivityAverageJoinInterceptStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.ActivityAverageJoinInterceptStatRequest;
import com.tuanzi.loan.vo.response.statistics.ActivityAverageJoinInterceptStatResponse;

/**
* @author weibifeng
*/
public class ActivityAverageJoinInterceptStatLazyDataModel extends BaseLazyDataModel<ActivityAverageJoinInterceptStatRequest, ActivityAverageJoinInterceptStatResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private ActivityAverageJoinInterceptStatService activityAverageJoinInterceptStatService = SpringContextHolder.getBean(ActivityAverageJoinInterceptStatService.class); 

	public ActivityAverageJoinInterceptStatLazyDataModel(ActivityAverageJoinInterceptStatRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<ActivityAverageJoinInterceptStatResponse> doLoad(
			PageSearcher<ActivityAverageJoinInterceptStatRequest> pageSearcher) {
		return activityAverageJoinInterceptStatService.list(pageSearcher);
	}

}
